package com.zzg.springboot.service;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.zzg.springboot.dao.UserEntityDao;
import com.zzg.springboot.entity.UserEntity;

@Service
public class UserEntityService {
	@Autowired
	private UserEntityDao dao;
	
	@Cacheable(value = "users", key = "#param")
	public UserEntity findByName(String name){
		return  dao.findByName(name);
	}
	
}
